//
// Created by 谢哲 on 2021/5/19.
//

#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;


int main() {
    int n, m, c;
    cin >> n >> m >> c;

    vector<vector<long long>> vdata(n+1, vector<long long>(m+1, 0ll));
    for (int i=1;i<=n;++i) {
        for (int j=1;j<=m;++j) {
            int a;
            cin >> a;
            vdata[i][j] = vdata[i][j-1] + vdata[i-1][j] + a - vdata[i-1][j-1];
        }
    }

    long long ans = -1e9;
    int ans_i = 0, ans_j = 0;
    for (int i=c; i<=n; ++i) {
        for (int j=c; j<=m; ++j) {
            long long cur_ans = vdata[i][j] - vdata[i-c][j] - vdata[i][j-c] + vdata[i-c][j-c];
            if (cur_ans > ans) {
                ans = cur_ans;
                ans_i = i - c + 1;
                ans_j = j - c + 1;
            }
        }
    }

    cout << ans_i << " " << ans_j;

    return 0;
}